package com.peanut.baby.mvp.trend.publish;

import android.app.Activity;

import com.peanut.baby.model.BBSMoment;
import com.peanut.baby.model.UploadConf;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

/**
 * Created by anonymouslystudio on 2017/7/28.
 */

public interface TrendPublishContract {
    interface View extends BaseView{
        void onPicturePermissionGranted();
        void onPicturePermissionDenied();
        void onPictureUploadFinished(boolean success, String failReason, UploadConf successConfig);
        void onSendMomentSuccess(BBSMoment moment);
        void onSendMomentFailed(String reason);
    }
    interface Presenter extends BasePresenter{
        void checkPicturePermission(Activity activity);
        void compressAndUploadPicture(String path);
        void submitMoment(String content, String type, String pictures);
    }
}
